package cn.tedu.sprig.dimap;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class demo04Test {
    @Test
    public void courseUtil(){
        ApplicationContext context = new ClassPathXmlApplicationContext("dean-diref.xml");
        Student student = context.getBean("stuUtil",Student.class);
        System.out.println(student);
    }

    @Test
    public void courseP(){
        ApplicationContext context = new ClassPathXmlApplicationContext("dean-diref.xml");
        Student student = context.getBean("studentp",Student.class);
        System.out.println(student);
    }
}
